package com.sdkj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sdkj.pojo.Member;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface MemberMapper extends BaseMapper<Member> {

    @Select("SELECT COUNT(*) FROM member")
    public Integer getMemberCount();

    @Select("SELECT COUNT(*) FROM member WHERE regtime BETWEEN  #{begin} AND  #{end}")
    public Integer  getMemberCountOfWeek(@Param("begin") String begin,@Param("end") String end);
}
